﻿using System;
using WySpecialtyFacadeTest.Specialty;

namespace WySpecialtyFacadeTest
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");
            var spe = new WySpecialty(new Specialty1(), new Specialty2(), new SpeCialty3(), new SelectSucces());
            Console.WriteLine("外观模式: 婺源特产选择测试");
            Console.WriteLine("————————————————————————");
            Console.WriteLine("本店产品有红鲤，1选购，2取消。绿茶，3选购，4取消。酒槽，5选购，6取消。8为全选,0取消所有选购,9为确认购买。");

            for (int i = 0; i < 9; i++)
            {
                Console.WriteLine("请输入选购数字");
                i = Convert.ToInt32(Console.ReadLine());
                if(i==1)
                {
                    spe.Shopping(1);
                }
                if (i == 2)
                {
                    spe.Shopping(2);
                }
                if (i == 3)
                {
                    spe.Shopping(3);
                }
                if (i == 4)
                {
                    spe.Shopping(4);
                }
                if (i == 5)
                {
                    spe.Shopping(5);
                }
                if (i == 6)
                {
                    spe.Shopping(6);
                }
              
                if (i == 8)
                {
                    spe.Shopping(8);
                }
                if (i == 9)
                {
                    spe.Shopping(9);
                }


            }
        }
    }
}
